package com.yeyks.consumer.service;

import com.yeyks.consumer.dal.domain.MessageNotice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeyks.consumer.dal.domain.UserInfo;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 消息通知表 服务类
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
public interface MessageNoticeService extends IService<MessageNotice> {
    void saveMessageNoticeSimple(String template, Map<String, Object> param, Integer userId, Integer type);

    MessageNotice getMessageNotice(Map<String, String> map, Integer userId, Integer hotelId);

    int createNoticeAndSave(Map<String, String> map, Integer userId, Integer hotelId);

    int activieyCreateAndSave(Map<String, String> map, Integer userId, Integer type);

    int activieyIdCreateAndSave(Map<String, String> map, Integer activityId, Integer type);

    /**
     * 分页获取通知消息
     *
     * @param userInfo
     * @param type
     * @param pageNo
     * @param pageSize
     * @return
     */
    Map<String, Object> list(UserInfo userInfo, Integer type, Integer pageNo, Integer pageSize);

    /**
     * 获取佣金明细
     *
     * @param param
     * @return
     */
    List<MessageNotice> detailList(Map<String, Object> param);

}
